<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%hj_interfaces}}".
 *
 * @property int $id 主键
 * @property string $controller_id 控制器ID
 * @property string $action_id 方法ID
 * @property int $top_id 是否是顶级ID,0否,1是
 * @property int $level 层级
 */
class Interfaces extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%interfaces}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['top_id', 'level'], 'integer'],
            [['controller_id', 'action_id', 'content', 'auth', 'part_ids'], 'string', 'max' => 255],
        ];
    }
}
